import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'report-';

export default {
    path: '/report',
    name: 'report',
    redirect: {
        name: `${pre}comprehensive`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'comprehensive/constitute',
            name: `${pre}comprehensive/constitute`,
            meta: {
                ...meta,
                title: '综合报表(复诊构成)'
            },
            component: () => import('@/pages/report/comprehensive/constitute')
        },
        {
            path: 'comprehensive/roomSummary',
            name: `${pre}comprehensive/roomSummary`,
            meta: {
                ...meta,
                title: '综合报表(科室汇总)'
            },
            component: () => import('@/pages/report/comprehensive/roomSummary')
        },
        {
            path: 'patientReport',
            name: `${pre}patientReport`,
            meta: {
                ...meta,
                title: '患者报表'
            },
            component: () => import('@/pages/report/patientReport')
        },
        {
            path: 'visitReport',
            name: `${pre}visitReport`,
            meta: {
                ...meta,
                title: '回访报表'
            },
            component: () => import('@/pages/report/visitReport')
        }
    ]
};
